
# ary = [3,5,1,2,7,9,8,13,25,32]
# puts ary.select {|num| num > 10}

# ary = ["John", "KB", "Oliver", "Cory", "Matthew", "Christopher"]
# puts ary.shuffle
# puts ary.select {|word| word.length > 5}

# ary = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
# x = ary.shuffle 
# vowels = "aeiou"
# puts "First letter: "+x[0]+" Last letter is: "+x[25]
# puts "The first letter is a vowel" if vowels.include?(x[0])

# ary = []
# ary.push(rand(55..100)) until ary.count == 10
# ary.sort! {|x,y| x <=> y}
# puts ary
# puts "The smallest number is: ", ary[0]
# puts "The largest number is: ", ary[ary.count - 1]

def random_string
	ary = ""
	counter = ary.length
	for counter in 0...5
		char = (65+rand(26)).chr
		ary += char
		# ary.map{|x| x = char}
	end
	return ary
end

def string_array
	ary = []
	count = ary.count
	for count in 0..10
		word = random_string
		ary.push(word)
	end
	return ary
end

puts string_array


